package com.java1412.controller;

import com.java1412.service.SchedualServiceHi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author java1412
 * @since 2023-02-20 11:53
 */
@RestController
public class HiController {
    // 直接注入接口
    @Autowired
    private SchedualServiceHi schedualServiceHi;

    @GetMapping(value = "/hi")
    public String hi(@RequestParam String userName) {
        System.out.println("feign");
        return schedualServiceHi.sayHiFromClientOne(userName);
    }
}
